﻿<UserControl x:Class="CredentialsManager.Views.ApplicationListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="500">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <ComboBox Grid.Column="0" Margin="10" ItemsSource="{Binding Applications}" 
                  SelectedValue="{Binding SelectedApplication, Mode=TwoWay}" 
                  ItemTemplate="{StaticResource ApplicationDataTemplate}" />
        <WrapPanel Grid.Column="1">
            <Button Command="{Binding RefreshApplicationsCommand}" Content="Re_fresh" Margin="10, 10, 0, 10" Padding="5" />
            <Button Command="{Binding DeleteApplicationCommand}" Content="_Delete" Margin="10, 10, 0, 10" Padding="5" />
            <Button Command="{Binding CreateApplicationCommand}" Content="_Create" Margin="10, 10, 10, 10" Padding="5" />
        </WrapPanel>
    </Grid>
</UserControl>
